package com.mjx.algorithm.oj;

import java.util.Scanner;

/**
 * 复数相乘
 * Created by 梅京翔 on 2017 02 11下午 8:13.
 */
public class problem1237 {
    public static void main(String[] args) {
        int a,b,c,d;
        Scanner scanner = new Scanner(System.in);
        String s = scanner.nextLine();
        String[] temp = s.split(" ");
        a = Integer.parseInt(temp[0]);
        b = Integer.parseInt(temp[1]);
        s = scanner.nextLine();
        temp = s.split(" ");
        c = Integer.parseInt(temp[0]);
        d = Integer.parseInt(temp[1]);
        System.out.println(a*c - b*d +" "+ (b*c + a*d));
    }
}
